﻿using Net.Share;

namespace Net.System
{
    /// <summary>
    /// Rpc模型工厂
    /// </summary>
    public interface IRpcModelFactory
    {
        /// <summary>
        /// 创建Rpc模型
        /// </summary>
        /// <param name="cmd"></param>
        /// <param name="kernel"></param>
        /// <param name="buffer"></param>
        /// <param name="index"></param>
        /// <param name="count"></param>
        /// <param name="protocol"></param>
        /// <param name="pars"></param>
        /// <param name="serialize"></param>
        /// <param name="token"></param>
        /// <returns></returns>
        IRpcModel Create(byte cmd = default, bool kernel = default, byte[] buffer = default, int index = default, int count = default, uint protocol = default, object[] pars = default, SyncSerialize serialize = default, uint token = default);
    }
}